const fs = require("fs");
const path = require("path");

const gitHookPath = path.resolve("../../.git/hooks");

fs.rename(path.resolve(gitHookPath, "pre-push"), path.resolve(gitHookPath, "pre-push.bak"), (err) => {
    if (err) {
        throw err
    };
    console.log("pre-push已移除！");
});